package repository

import (
	"context"
	"github.com/starmotioncf/soutchatinternal/model"
)

type CaptchaRepository interface {
	// Create 创建一条短信记录
	Create(ctx context.Context, m *model.SmsCaptcha) error
	// GetByCodeId 通过验证码id找一条记录
	GetByCodeId(ctx context.Context, codeId string) (m *model.SmsCaptcha, err error)
	// UpdateVerifyCode 校验更新验证码
	UpdateVerifyCode(ctx context.Context, id int64) error
}
